import { ArrowLeft } from 'lucide-react';
import { Button } from '../components/Button';
import { usePageTitle } from '../lib/usePageTitle';

export function TermsOfServicePage() {
  usePageTitle({
    title: 'Terms of Service',
    description: 'VitaIncubator\'s terms of service and user agreement for using our website and services.'
  });
  
  return (
    <div className="w-full bg-[#0a2540] text-white min-h-screen">
      <div className="container mx-auto px-4 md:px-8 py-16">
        <div className="max-w-4xl mx-auto">
          <div className="mb-8">
            <Button 
              href="/"
              variant="secondary"
              className="mb-6"
            >
              <ArrowLeft size={16} className="mr-2" />
              Back to Home
            </Button>
            <h1 className="text-4xl md:text-5xl font-bold mb-4">Terms of Service</h1>
            <p className="text-gray-300 text-lg">
              Last updated: {new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}
            </p>
          </div>

          <div className="prose prose-invert max-w-none">
            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">1. Acceptance of Terms</h2>
              <p className="text-gray-300 mb-4">
                By accessing and using VitaIncubator ("we," "our," or "us"), you accept and agree to be bound by the terms and provision of this agreement. 
                If you do not agree to abide by the above, please do not use this service.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">2. Description of Service</h2>
              <p className="text-gray-300 mb-4">
                VitaIncubator provides reviews, recommendations, and information about health and wellness products. Our services include:
              </p>
              <ul className="list-disc list-inside text-gray-300 mb-4 space-y-2">
                <li>Product reviews and recommendations</li>
                <li>Health and wellness guides</li>
                <li>Product comparison tools</li>
                <li>Educational content about health and wellness products</li>
              </ul>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">3. User Conduct</h2>
              <p className="text-gray-300 mb-4">
                You agree to use our website only for lawful purposes and in a way that does not infringe the rights of, 
                restrict, or inhibit anyone else's use and enjoyment of the website. Prohibited behavior includes:
              </p>
              <ul className="list-disc list-inside text-gray-300 mb-4 space-y-2">
                <li>Harassing or causing distress or inconvenience to any other user</li>
                <li>Transmitting obscene or offensive content</li>
                <li>Disrupting the normal flow of dialogue within our website</li>
                <li>Using automated systems to access the website</li>
              </ul>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">4. Intellectual Property</h2>
              <p className="text-gray-300 mb-4">
                The content on this website, including text, graphics, logos, images, and software, is the property of VitaIncubator 
                and is protected by copyright and other intellectual property laws. You may not reproduce, distribute, or create 
                derivative works from our content without explicit written permission.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">5. Affiliate Relationships</h2>
              <p className="text-gray-300 mb-4">
                VitaIncubator participates in affiliate marketing programs. We may earn commissions from purchases made through 
                links on our website. This does not affect the price you pay or influence our reviews and recommendations. 
                For more details, please see our <a href="/affiliate-disclosure" className="text-[#06d6a0] hover:underline">Affiliate Disclosure</a>.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">6. Disclaimers</h2>
              <p className="text-gray-300 mb-4">
                The information provided on VitaIncubator is for educational and informational purposes only. We make no representations 
                or warranties of any kind about the completeness, accuracy, reliability, or suitability of the information contained on 
                this website.
              </p>
              <p className="text-gray-300 mb-4">
                Our product reviews and recommendations are based on our testing and research, but individual results may vary. 
                Always consult with healthcare professionals before making decisions about health and wellness products.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">7. Limitation of Liability</h2>
              <p className="text-gray-300 mb-4">
                In no event shall VitaIncubator be liable for any direct, indirect, incidental, special, or consequential damages 
                resulting from the use or inability to use our website or services, even if we have been advised of the possibility 
                of such damages.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">8. Privacy Policy</h2>
              <p className="text-gray-300 mb-4">
                Your privacy is important to us. Please review our <a href="/privacy-policy" className="text-[#06d6a0] hover:underline">Privacy Policy</a>, 
                which also governs your use of the website, to understand our practices.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">9. Changes to Terms</h2>
              <p className="text-gray-300 mb-4">
                We reserve the right to modify these terms of service at any time. Changes will be posted on this page with an 
                updated revision date. Your continued use of the website after any changes constitutes acceptance of the new terms.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-bold mb-4 text-[#06d6a0]">10. Contact Information</h2>
              <p className="text-gray-300 mb-4">
                If you have any questions about these Terms of Service, please contact us at:
              </p>
              <div className="bg-[#061a2c] p-6 rounded-lg">
                <p className="text-gray-300">
                  Email: <a href="mailto:legal@vitaincubator.com" className="text-[#06d6a0] hover:underline">legal@vitaincubator.com</a><br />
                  Address: VitaIncubator Legal Department<br />
                  123 Health Innovation Drive<br />
                  Wellness City, WC 12345
                </p>
              </div>
            </section>
          </div>

          <div className="mt-12 pt-8 border-t border-[#1a3a5c]">
            <div className="flex flex-col sm:flex-row gap-4">
              <Button href="/privacy-policy" variant="secondary">
                View Privacy Policy
              </Button>
              <Button href="/affiliate-disclosure" variant="secondary">
                View Affiliate Disclosure
              </Button>
              <Button href="/contact">
                Contact Us
              </Button>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
}
